package com.springboot.demo.service;


import com.cx.item.common.par.PageParam;
import com.cx.item.common.service.BaseService;
import com.github.pagehelper.PageInfo;
import com.springboot.demo.model.example.OrderExample;
import com.springboot.demo.model.model.Customer;
import com.springboot.demo.model.model.Order;
import com.springboot.demo.model.par.OrderPar;
import com.springboot.demo.model.vo.OrderVo;

import java.util.List;

public interface OrderService extends BaseService<Order, OrderExample> {

    Order getOrderByOrderNumber(String orderNumber);

    Customer getCustomerByOrderId(int orderId);

    int create(OrderPar orderPar);

    PageInfo<List<OrderVo>> queryList(Integer payStatus, Integer customerId, PageParam pageParam);

    OrderVo queryById(Integer id);
}